@import '../assets/theme.scss';
#window{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  bottom: 0;
  right: 0;
  pointer-events: none;
  transition: $default-transition;
  opacity: 0;
  &.window{
    pointer-events: auto;
    opacity: 1;
  }
  .login-register{
    position: absolute;
    z-index: 1;
    $width: 400px;
    $height: 400px;
    display: none;
    width: $width;
    height: $height;
    background-color: #FFF;
    box-shadow: 0 0 4px $color-main - #444;
    left: 50%;
    top: 50%;
    margin-top: -$height/2 - 100px;
    margin-left: -$width/2;
    transition: $default-transition;
    &:hover{
      box-shadow: 0 0 20px $color-main - #444;
      border-radius: 20px;
    }
    &.login{
      display: block;
      height: 440px;
    }
    &.register{
      display: block;
      height: 570px;
    }
    $logo-width: 100px;
    .logo{
        width: $logo-width;
        height: $logo-width;
        background: $color-main;
        line-height: $logo-width;
        text-align: center;
        color: #FFF;
        font-size: $logo-width/1.4;
        text-shadow: 0px 0px 8px #FFF;
        float: left;
        margin: 20px;
    }
    .des{
      width: $width - $logo-width - 60px;
        height: $logo-width;
        float: left;
        margin: 20px 20px 20px 0;
        line-height: 24px;
        color: $color-main;
    }
    &.login .from-main.login{
      display: block;
    }
    &.register .from-main.register{
      display: block;
    }
    .from-main{
      display: none;
      margin-top: 60px;
      padding-left: 60px;
      padding-right: 60px;
      float: left;
      width: 100%;
      .icon{
        font-size: 30px;
        color: $color-forbid;
        display: block;
        text-shadow: 1px 1px 2px #000;
        margin-left: 2px;
        &.active{
          color: $color-main;
        }
      }
      .MS-icon-lock{
        margin-left: 6px;
      }
      input{
        margin-bottom: 30px;
        margin-top: -32px;
        border: 0;
        border: 1px solid $color-forbid;
        height: 35px;
        outline: none;
        padding-left: 34px;
        width: 100%;
        display: block;
        color: $color-main;
        &.active{
          border-color: $color-main;
        }
        &:focus{
          box-shadow: 1px 1px 2px $color-main;
          background-color: $color-main + #888;
        }
      }
      .btn{
        float: left;
        text-align: center;
        color: #fff;
        cursor: pointer;
        height: 36px;
        line-height: 36px;
        transition: $default-transition;
        &.submit{
          width: 196px;
          background-color: $color-forbid;
          cursor: default;
          &.active{
            background-color: $color-main;
            cursor: pointer;
            &:hover{
              box-shadow: 0 0 12px $color-main;
              text-shadow: 1px 1px 1px #fff;
              background-color: $color-main - #222;
            }
            &:active{
              background-color: $color-main - #555;
            }
          }
        }
        &.other-account{
          font-size: 12px;
          background-color: $color-main + #333;
          width: 84px;
          position: relative;
          ul{
            background-color: $color-main;
            transition: $default-transition;
            overflow: hidden;
            position: absolute;
            right: 84px;
            height: 36px;
            line-height: 36px;
            width: 0px;
            text-align: center;
            li{
              transition: $default-transition;
              display: inline-block;
              margin: 0 6px;
            }
          }
          &:hover{
            box-shadow: 0 0 12px $color-main;
            text-shadow: 1px 1px 1px #fff;
            background-color: $color-main;
            ul{
              box-shadow: 0 0 12px $color-main;
              text-shadow: 1px 1px 1px #fff;
              width: 196px;
              li{
                color: $color-main - #555;
              }
            }
          }
        }
      }
      .go-other{
        transition: $default-transition;
        float: left;
        margin-top: 20px;
        text-align: center;
        width: 196px;
        cursor: pointer;
        text-decoration: underline;
        &:hover{
          color: $color-main;
        }
      }
    }
  }
  .show-pic{
    position: absolute;
    z-index: 1;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    &.showPic{
      display: block;
      margin: auto;
      max-height: 100%;
      max-width: 100%;
    }
  }
  .dialog-alert{
    position: absolute;
    z-index: 1;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 300px;
    height: 120px;
    padding: 40px;
    box-shadow: 2px 2px 4px #000;
    background-color: #FFF;
    border-radius: 10px;
    word-wrap: break-word;
    word-break: normal;
    &.alert{
      display: inline-block;
    }
  }
  .dialog-input{
    position: absolute;
    z-index: 1;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 400px;
    height: 120px;
    padding: 40px;
    box-shadow: 2px 2px 4px #000;
    background-color: #FFF;
    border-radius: 10px;
    word-wrap: break-word;
    word-break: normal;
    &.input{
      display: inline-block;
    }
    .text{
      padding-right: 6px;
      line-height: 30px;
      font-size: 20px;
    }
    input{
      border: 1px solid $color-forbid;
      border-radius: 4px;
      box-shadow: 1px 1px 2px $color-forbid;
      padding: 6px;
      outline: none;
      width: 200px;
    }
    .icon{
      font-size: 20px;
      margin-left: 10px;
      cursor: pointer;
      transition: $default-transition;
      &:hover{
        color: $color-main;
      }
    }
  }
  .bg-i{
      position: fixed;
      bottom: 0;
      right: 0;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, .5);
      z-index: -1;
  }
  .MS-icon-cancel-circle{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    color: $color-main;
    cursor: pointer;
    transition: $default-transition;
    &:hover{
      text-shadow: 1px 1px 2px $color-main;
      color: $color-main - #333;
    }
  }
}
